<?php
/**
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$template_dir = $this->baseurl.'/templates/'.$this->template.'/';
jimport('mylibs.globalModel');
$globalModel = new globalModel();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
	<head>		
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Alsace | Bringer menuen i balance</title>
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo $template_dir;?>favicon.ico" />
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo $template_dir;?>favicon.png" />	
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/styles.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/thickbox.css" />
        <jdoc:include type="head" />                                           
	</head>
	<body>
        <!--[if gt IE 7]><div class="ie ie8"><![endif]-->
        <!--[if IE 7]><div class="ie ie7"><![endif]-->
        <!--[if IE 6]><div class="ie ie6"><![endif]-->
        <!--[if lt IE 6]><div class="ie ie5"><![endif]-->
        <!--[if !IE]>--><div class="ie0"><!--<![endif]-->
		<script type="text/javascript" src="<?php echo $template_dir;?>js/get_nav.js"></script>
            <!-- page content -->
            <div class="wrapper">
                <div id="page">
                    <!-- header -->
                    <div id="header">
                    	<div class="header-inner">
                            <h1 class="top-title f-left"><a href="index.php"><img src="<?php echo $template_dir;?>img/page_heading_landingspage.png" alt="NYHEDER OM VINENE FRA  ALSACE" /></a></h1>
                            <h1 class="logo f-right"><a href="http://www.alsacevin.net" title="Alsace -  Bringer menuen i balance"><img src="<?php echo $template_dir;?>img/alsace_logo.png" alt="Alsace -  Bringer menuen i balance" /></a></h1>
                        </div>
                    </div>
                    <!-- / end header -->
    
                    <!-- Begin main content -->
                    <div id="main">
                     
                        <!-- Begin mid-content  -->
                        <div id="content-ctn">
                        	<div class="left-col f-left">
                            	<div class="col-inner">
                                    <h2>ARTIKLER</h2>
                                    <ul class="news-list">
                                        <?php 
                                    		$data = $globalModel->getAllArticle();                          		
                                    		foreach ( $data as $key=>$value ){//                                   			                                			                              		
                                    	?>
                                        <li <?php if ( ($key==0 && !isset($_GET['id'])) || ($_GET['id']==$value['id']) ) { echo 'class="active"'; } ?>>
                                            <a href="index.php?option=com_content&view=article&id=<?php echo $value['id']?>">
                                            	<span class="news-title"><?php echo nl2br($value['title']);?></span>
                                                <span class="news-desc"><?php echo $value['introtext'];//$globalModel->getShortText($value['introtext'],113); ?></span>
                                            </a>
                                        </li>                                                       
                                        <?php
                                    		} 
                                        ?>      
                                    </ul>
                            	</div>
                            </div>
                            <div class="content-mid f-left">
                            	<div class="content-holder">
                                	<jdoc:include type="component" />                                     
                                </div>                        	
                            </div>
                            <div class="right-col f-left">
                            	<div class="col-inner">                            		
                                	<div class="sponsor">
                                		<img src="<?php echo $template_dir;?>img/franceagrilmer.jpg" alt="France AgrilMer" />
                                    	<img src="<?php echo $template_dir;?>img/france_embassy.jpg" alt="Frankrig i Danmark" />
                                    </div>
                                    <h2>Send til en ven</h2>
                                    <p>
                                    	Kender du nogen der er interesseret i vin? Så send denne videre. <a href="index.php?option=com_kontakt&height=265&width=520&tmpl=component&no_html=0" class="thickbox" title="Send til en ven">Klik her</a>
                                    </p>
                                    <div class="medias" id="alsaceFlash">
<!--                                    	 <img src="<?php echo $template_dir;?>img/img_02.jpg" alt="" />-->															 
                                    </div>
                                </div>
                            </div>
                            <div class="clr"></div>
                               
                        </div>
                        <!-- /end mid-content  -->
                        
                    </div>
                    <!-- / end main content -->
                    
                    <!-- Begin footer -->
                    <div id="footer">
                    	<div class="footer-inner">
                        	<p class="info fll">
                        		<?php 
		                        	$data = $globalModel->getArticle(314);
		                        	echo $data['introtext'];
		                        ?>
                        	</p>
                        </div>
                    </div>
                    <!-- / end footer -->
                    
                </div>
            </div>
            <!--/ page content -->
            <?php            
                        	$data_image = $globalModel->getMWCImages(5);                        					                        	
            ?>	            
            <script type="text/javascript" src="<?php echo $template_dir;?>js/jquery-1.4.4.min.js"></script>
        	<script type="text/javascript" src="<?php echo $template_dir;?>js/jquery.thickbox.compressed.js"></script> 
            <script type="text/javascript" src="<?php echo $template_dir;?>js/flashobject.js"></script>
            <script type="text/javascript">
                var fo = new FlashObject("<?php echo JURI::root().substr($data_image[0]['thumbnail'],3,strlen($data_image[0]['thumbnail']));?>", "alsace_flash", "119", "300", "8");          
                fo.addParam("allowScriptAccess", "sameDomain");
                fo.addParam("quality", "high");
                fo.addParam("scale", "scale");
                fo.addParam("wmode", "transparent");
                fo.addParam("loop", "true");
                fo.write("alsaceFlash");
            </script>
    	</div>     	
	</body>
</html>